<#import '/ftlLibrary/properteisVariable.ftl' as pv/>
<div class="row">
	<div class="col-lg-12 col-sm-12 col-xs-12">
		<div class="widget">
			<div class="widget-header bordered-bottom theme">
				<span class="widget-caption">操作日志-${(editModel=='add')?string('新增','编辑')}</span>
				<div class="widget-buttons">
					<a href="#" data-toggle="collapse">
						<i class="fa fa-minus"></i>
					</a>
					<a href="#" data-toggle="maximize">
						<i class="fa fa-expand"></i>
					</a>
				</div>
			</div>
			<div class="widget-body">
				<div class="row">
					<form class="editForm" action="${saveUrl}" method="post" responseType="JSON" role="form" id="editForm_${serializeNum}"
						data-bv-submitButtons="#editFormSubmitBtn_${serializeNum}"
						data-bv-message="This value is not valid"
						data-bv-feedbackicons-valid="glyphicon glyphicon-ok"
						data-bv-feedbackicons-invalid="glyphicon glyphicon-remove"
						data-bv-feedbackicons-validating="glyphicon glyphicon-refresh">
						<input type="hidden" name="formKey" value="${formKey}">
						<input type="hidden" name="formToken" value="${formToken}">
							<input type="hidden" name="id" value="${editEntity.id}">
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="adminUserId" class="col-sm-2 control-label no-padding-right">用户名</label>
									<div class="col-sm-10">
										<select name="adminUserId" class="selectpicker_${serializeNum}" data-live-search="true">
										<optgroup label="选择所属分组" data-icon="icon-ok">
											<option value="">无</option>
											<#list adminUserId_datasources as datasources >
											<option value="${datasources.id}">${datasources.userName}</option>
											</#list>
										</optgroup>
										</select>
										<script type="text/javascript">
											$("[name='adminUserId']").val("${editEntity.adminUserId}");
										</script>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="controllerName" class="col-sm-2 control-label no-padding-right">控制器名称</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid"maxlength="255" name="controllerName" alt="控制器名称" id="controllerName" placeholder="控制器名称" type="text" title="控制器名称" class="form-control"  value="${editEntity.controllerName}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="method" class="col-sm-2 control-label no-padding-right">请求方法</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid"maxlength="1000" name="method" alt="请求方法" id="method" placeholder="请求方法" type="text" title="请求方法" class="form-control"  value="${editEntity.method}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="requestURI" class="col-sm-2 control-label no-padding-right">请求路径</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid"maxlength="100" name="requestURI" alt="请求路径" id="requestURI" placeholder="请求路径" type="text" title="请求路径" class="form-control"  value="${editEntity.requestURI}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="requestTime" class="col-sm-2 control-label no-padding-right">请求时间</label>
									<div class="col-sm-10">
										<span class="input-icon icon-left">
											<input data-bv-date-format="YYYY-MM-DD hh:mm:ss" data-bv-message="The field is not valid" data-bv-date-message="请正确输入一个时间" data-bv-date="true"maxlength="19" name="requestTime" alt="请求时间" id="requestTime" placeholder="请求时间" type="text" title="请求时间" class="form-control form-control date-picker" onfocus="WdatePicker({doubleCalendar:true,dateFmt:'yyyy-MM-dd HH:mm:ss'})"  value="${editEntity.requestTime}"/>
											<i class="fa fa-calendar"></i>
										</span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="params" class="col-sm-2 control-label no-padding-right">请求参数</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid"maxlength="1000" name="params" alt="请求参数" id="params" placeholder="请求参数" type="text" title="请求参数" class="form-control"  value="${editEntity.params}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="responseTime" class="col-sm-2 control-label no-padding-right">响应时间</label>
									<div class="col-sm-10">
										<span class="input-icon icon-left">
											<input data-bv-date-format="YYYY-MM-DD hh:mm:ss" data-bv-message="The field is not valid" data-bv-date-message="请正确输入一个时间" data-bv-date="true"maxlength="19" name="responseTime" alt="响应时间" id="responseTime" placeholder="响应时间" type="text" title="响应时间" class="form-control form-control date-picker" onfocus="WdatePicker({doubleCalendar:true,dateFmt:'yyyy-MM-dd HH:mm:ss'})"  value="${editEntity.responseTime}"/>
											<i class="fa fa-calendar"></i>
										</span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="responseInfo" class="col-sm-2 control-label no-padding-right">响应信息</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid"maxlength="10" name="responseInfo" alt="响应信息" id="responseInfo" placeholder="响应信息" type="text" title="响应信息" class="form-control"  value="${editEntity.responseInfo}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="handlingResult" class="col-sm-2 control-label no-padding-right">处理结果</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid"maxlength="10" name="handlingResult" alt="响应信息" id="handlingResult" placeholder="处理结果" type="text" title="处理结果" class="form-control"  value="${editEntity.handlingResult?html}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="duration" class="col-sm-2 control-label no-padding-right">处理时长</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid"maxlength="100" name="duration" alt="处理时长" id="duration" placeholder="处理时长" type="text" title="处理时长" class="form-control"  value="${editEntity.duration}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="logContent" class="col-sm-2 control-label no-padding-right">日志信息</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid"maxlength="1000" name="logContent" alt="日志信息" id="logContent" placeholder="日志信息" type="text" title="日志信息" class="form-control"  value="${editEntity.logContent}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="clientIp" class="col-sm-2 control-label no-padding-right">客户端IP</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid"maxlength="20" name="clientIp" alt="客户端IP" id="clientIp" placeholder="客户端IP" type="text" title="客户端IP" class="form-control" required="required "  value="${editEntity.clientIp}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (false && editModel=='add')||(false && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="version" class="col-sm-2 control-label no-padding-right">版本</label>
									<div class="col-sm-10">
										<input  data-bv-integer-message="The field is number" data-bv-message="The field is not valid" data-bv-integer="true"maxlength="11" name="version" alt="版本" id="version" placeholder="版本" type="text" title="版本" class="form-control"  value="${editEntity.version}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
						<div class="col-sm-12">
							<input type="button" class="btn btn-default" data-dismiss="modal" value="返回" onclick="backView()"/>
							<button type="submit" class="btn btn-blue" id="editFormSubmitBtn_${serializeNum}">保存</button>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
<script src="assets/js/validation/bootstrapValidator_init.js"></script>
<script>
$(".selectpicker_${serializeNum}").select2();
</script>